package week01;

public class TicketMaker {
    private static TicketMaker currentRuntime = new TicketMaker();

    /**
     * Returns the runtime object associated with the current Java application.
     * Most of the methods of class <code>Runtime</code> are instance
     * methods and must be invoked with respect to the current runtime object.
     *
     * @return  the <code>Runtime</code> object associated with the current
     *          Java application.
     */
    public static TicketMaker getRuntime() {
        return currentRuntime;
    }

    /** Don't let anyone else instantiate this class */
    private TicketMaker() {}
    public void getNextTicketNumber(){
        for(int i=1000;i<=1100;i++){
            System.out.println(i);
        }
    }
    public static void main(String[] args){
        currentRuntime.getNextTicketNumber();
    }
}
